import datetime


class DatetimeDemo:
    def _test_strftime(self):
        """
        dd = DatetimeDemo()
        dd._test_strftime()
        """
        print datetime.date.today().strftime("%d/%m/%Y")

        datetime1 = datetime.date(2015, 1, 5)
        print datetime1.strftime("%d/%m/%Y")

    def _test_timedelta(self):
        """
        dd = DatetimeDemo()
        dd._test_timedelta()
        """
        datetime1 = datetime.date(2015, 1, 5)
        datetime2 = datetime1 + datetime.timedelta(days=1)
        print datetime2.strftime("%d/%m/%Y")

    def _test_replace(self):
        """
        dd = DatetimeDemo()
        dd._test_replace()
        """
        datetime1 = datetime.date(2015, 1, 5)
        datetime2 = datetime1.replace(year=2017)
        print datetime2.strftime("%d/%m/%Y")


if __name__ == '__main__':
    dd = DatetimeDemo()
    dd._test_replace()
